﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model;
using Db;

namespace Controller
{
    public class EmployeeCtr
    {
        EmployeeDb empDb = new EmployeeDb();

        public Employee GetEmployeeById(int id)
        {
            return empDb.GetEmployeeById(id);
        }

        public Employee GetEmployeeByCpr(string empcpr)
        {
            return empDb.GetEmployeeByCpr(empcpr);
        }


        public void CreateEmployee(Employee newEmployee)
        
        {
            empDb.CreateEmployee(newEmployee);

        }
        



        public void UpdateEmployee(Employee newEmployee)
        {
            empDb.UpdateEmployee(newEmployee);
        }


        public void DeleteEmployeeByCpr(string empcpr)
        {
            empDb.DeleteEmployeeByCpr(empcpr);
        }


    }
}
